export default {
    data() {
        return {
            mealSubsidyList: [],
        }
    },
    created() {
        this.getMealSubsidyList()
    },
    methods: {
        getMealSubsidyList() {
            Promise.all(['/market/allowance-rule/', '/market/allowance-off/'].map(v => this.$http({
                url: v,
                method: 'get',
            }))).then(res => {
                const arr = res.map(v => v.results)
                this.mealSubsidyList = [...arr[0], ...arr[1]]
            })
        }
    }
}